<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>
</head>
<body>
    <div id="app">
   <a v-bind:href="this.url">百度</a>  <!--单向绑定 视图——模型 -->
   <input type="text" v-model="content">
    </div>

    <script>
    var app =new Vue({
        el:"#app",
        data:{
            url:"http://www.baidu.com",
            content:'lovely'
        }
    })
    </script>
</body>
</html>